package com.ruoyi.aitymyy.config;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.aitcommon.utils.JSONUtils;

@Component
public class BaseMapConfig {
	public static JSONObject json;
	public static String name;
	public static String version;
	
	public static Map<String,Object> gysmap;
	public static Map<String,Object> gysdzmap;
	public static Map<String,Object> lxrmap;
	
	public BaseMapConfig() throws Exception {
		super();
		BaseMapConfig.json = JSONUtils.parseObjectFromResource("json/basemap.json");
		BaseMapConfig.name=json.getString("name");
		BaseMapConfig.version=json.getString("version");
		BaseMapConfig.gysmap = json.getJSONObject("gys");
		BaseMapConfig.gysdzmap = json.getJSONObject("gysdz");
		BaseMapConfig.lxrmap = json.getJSONObject("lxr");
	}
	
	
}
